package newcoder.m1.d13;

import leetcode.link.ListNode;

public class Solution {

    public static void main(String[] args) {
        int[] ints = printNumbers(2);
        for (int anInt : ints) {
            System.out.println(anInt);
        }
//        System.out.println(10^2);
    }

    public static int[] printNumbers (int n) {
        // write code here
        int end = 1;
        for (int i = 1; i <= n; i++) {
                end = end*10;
        }
        int[] nums = new int[end-1];
        for (int i = 0; i < nums.length; i++) {
            nums[i] = i+1;
        }
        return nums;
    }


}
